package org.example.socket网络编程;

import java.io.*;
import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.net.UnknownHostException;
import java.util.Arrays;

public class TestSockerAddress {
    public static void main(String[] args) throws IOException {
        InputStream inputStream = new FileInputStream(new File("nidewode.txt"));
        int len = 0;
        byte[] bytes = new byte[2];
        while ( (len = inputStream.read(bytes)) != -1 ){
            System.out.println(new String(bytes) + Arrays.toString(bytes));
        }
        //


    }
}
